console.log('000');

function fn () {
    return new Promise((resolve,reject) => {
        resolve('111')
    });
}


let f = fn();

setTimeout(() => {
    console.log('333');
}, 1000);

f.then((d)=>{
    console.log('d',d);

    setTimeout(() => {
        console.log('2222');
    }, 2000);
});
